<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>definePrototype</title>
    <script src="../vue.js"></script>
</head>
<body>
    <div id="app">
        <button @click="change">change</button>
        {{message}}
    </div>
    <script>
        let vm = new Vue({
            el:'#app',
            data:{
                message:'Hello miaov',
            },
            methods:{
                change(){
                    this.message = '改变了';
                }
            }
        })
    </script>
</body>
</html>